package org.mathig.poker.hand;

import java.util.Arrays;
import java.util.List;

import org.mathig.poker.Card;
import org.mathig.poker.PokerRank;
import org.mathig.poker.Rank;

public class FourOfAKind extends ManyOfAKind {

	public FourOfAKind(List<Card> fourCards, Card kicker) {
		super(fourCards, Arrays.asList(kicker));
	}

	public Card getKicker() {
		return otherCards.get(0);
	}

	public Rank getRank() {
		return manyCards.get(0).getRank();
	}

	public PokerRank getPokerRank() {
		return PokerRank.FOUR;
	}

	@Override
	public String toString() {
		return "quad of " + getRank();
	}

}
